package com.chenyue.cm.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lbx
 * @since 2021-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysRoleMenus extends Model<SysRoleMenus> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 角色id
     */
    private String roleId;

    /**
     * 菜单/权限id
     */
    private String menuId;

    /**
     * 菜单编码
     */
    private String menuCode;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
